/* 
 * File:   SensorData.cpp
 * Author: root
 * 
 * Created on October 27, 2015, 6:59 AM
 */

#include "SensorData.h"
#include <iostream>

using namespace std;

uint32 SensorData::instanceCount;

SensorData::SensorData() {
    this->time = 0;
    this->accelerator = 0;
    cout<<"SensorData() constructor\n";
    ++this->instanceCount;
}

SensorData::SensorData(const SensorData& orig) {
    this->time = orig.time;
    this->accelerator = orig.accelerator;
    ++this->instanceCount;
}

SensorData& SensorData::operator=(const SensorData& orig)
{
  if ( this == &orig ) {
      return *this;
  } else {
      this->time  = orig.time;
      this->accelerator = orig.accelerator;

  }
  return *this;
}

SensorData::~SensorData() {
    --this->instanceCount;
    cout<<"SensorData::~SensorData() desconstructor\n";
}

SensorData::SensorData(uint32 time, double paraAcc)
{
    this->time = time;
    this->accelerator = paraAcc;
}

